

def remove_None_value(info_dict):
    for key in list(info_dict.keys()):
        if not info_dict[key]:
            del info_dict[key]

def split_values_from_keys(info_dict,keys_dict):
    '''
    从keys_dict吧key相关的value从info_dict分离出来
    :param info_dict:
    :param keys_dict:
    :return:
    '''
    split_dict = {}
    for key in list(info_dict.keys()):
        if key in list(keys_dict.keys()):
            split_dict[keys_dict[key]] = info_dict[key]
            del info_dict[key]

    return split_dict


def make_neo4j_name(info_dict,name_list):
    for key in list(info_dict.keys()):
        if key in name_list:
            info_dict['name'] = info_dict[key]